<?php echo $this->Html->script(array('/uploadify/jquery.uploadify.v2.1.4','/uploadify/swfobject'), false); ?>
<?php echo $this->Html->css('/uploadify/uploadify'); ?>
<style type="text/css">
div.uploader {
	display:none;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
	$('#file_upload').uploadify({
		'uploader' 		: '<?php echo $this->webroot; ?>app/webroot/uploadify/uploadify.swf',
		'script' 		: '<?php echo $this->webroot; ?>app/webroot/uploadify/uploadify.php',
		'buttonImg' 	: '<?php echo $this->webroot; ?>app/webroot/uploadify/cancle.jpg',
		'cancelImg'  	: '<?php echo $this->webroot; ?>app/webroot/uploadify/cancel1.png',
		'folder'     	: '<?php echo $this->webroot; ?>app/webroot/uploads',
		'auto'      	: false,
		'displayData' 	: 'speed',
		'wmode' 		: 'transparent',
		'scriptData' 	: {'hasFileField':1},
		//'multi' 		: true,
		'onComplete' 	: function(event, ID, fileObj, response, data) {
							$('#guide_pic').attr('src', '<?php echo $this->webroot; ?>app/webroot/uploadify/timthumb.php?src=/'+response+'&w=148&zc=0');
							//$(".thumb").aeImageResize({ height: 148, width: 148 });
						},
	});
});
</script>
<input type="file" id="file_upload" name="file_upload" />
<button id="file_uploadUploader" class="button light_w_arrow">Upload Image</button>